<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:MySilverlightAlbum"
    xmlns:System="clr-namespace:System;assembly=mscorlib">

    <Style
        TargetType="local:ToolbarMenuItem">
        <Setter
            Property="Cursor"
            Value="Hand" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="local:ToolbarMenuItem">
                    <Grid
                        VerticalAlignment="Stretch"
                        HorizontalAlignment="Stretch"
                        x:Name="LayoutRoot">

                        <Grid.RowDefinitions>
                            <RowDefinition
                                Height="13" />
                            <RowDefinition
                                Height="13" />
                        </Grid.RowDefinitions>

                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup
                                x:Name="CommonStates">
                                <VisualState
                                    x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames
                                            BeginTime="00:00:00"
                                            Duration="00:00:00.0010000"
                                            Storyboard.TargetName="textBlock"
                                            Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
                                            <EasingColorKeyFrame
                                                KeyTime="00:00:00"
                                                Value="{StaticResource MenuTextForegroundMouseOver}" />
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames
                                            BeginTime="00:00:00"
                                            Duration="00:00:00.0010000"
                                            Storyboard.TargetName="moreMark"
                                            Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
                                            <EasingColorKeyFrame
                                                KeyTime="00:00:00"
                                                Value="{StaticResource MenuTextForegroundMouseOver}" />
                                        </ColorAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames
                                            BeginTime="00:00:00"
                                            Duration="00:00:00.0010000"
                                            Storyboard.TargetName="subText"
                                            Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
                                            <EasingColorKeyFrame
                                                KeyTime="00:00:00"
                                                Value="{StaticResource SubMenuTextForegroundMouseOver}" />
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState
                                    x:Name="Normal" />
                                <VisualState
                                    x:Name="Pressed" />
                                <VisualState
                                    x:Name="Disabled" />
                            </VisualStateGroup>
                            <VisualStateGroup
                                x:Name="FocusStates">
                                <VisualState
                                    x:Name="Focused" />
                                <VisualState
                                    x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Border
                            x:Name="border"
                            Grid.Row="0"
                            Grid.RowSpan="2"
                            BorderThickness="{TemplateBinding Separator}"
                            BorderBrush="Gray" />

                        <StackPanel
                            Orientation="Horizontal">
                            <TextBlock
                                x:Name="textBlock"
                                VerticalAlignment="Stretch"
                                HorizontalAlignment="Stretch"
                                Grid.Row="0"
                                Margin="2,-2,0,0"
                                FontFamily="Arial Black"
                                FontSize="10"
                                FontWeight="{TemplateBinding FontWeight}"
                                Foreground="{StaticResource MenuTextForeground}"
                                Text="{TemplateBinding Title}">
                				<TextBlock.Effect>
                					<DropShadowEffect
                                        BlurRadius="2"
                                        Direction="0"
                                        ShadowDepth="1" />
                				</TextBlock.Effect>
                            </TextBlock>
                            <TextBlock
                                x:Name="moreMark"
                                VerticalAlignment="Bottom"
                                HorizontalAlignment="Stretch"
                                Grid.Row="1"
                                FontSize="8"
                                Margin="2,-2,0,0"
                                Foreground="{StaticResource MenuTextForeground}"
                                FontFamily="Arial Black"
                                FontWeight="{TemplateBinding FontWeight}"
                                Text="{TemplateBinding MoreMark}">
                				<TextBlock.Effect>
                					<DropShadowEffect
                                        BlurRadius="2"
                                        Direction="0"
                                        ShadowDepth="1" />
                				</TextBlock.Effect>
                            </TextBlock>
                        </StackPanel>

                        <TextBlock
                            x:Name="subText"
                            VerticalAlignment="Stretch"
                            HorizontalAlignment="Stretch"
                            Grid.Row="1"
                            FontSize="9.333"
                            Margin="2,-2,0,0"
                            FontWeight="Normal"
                            Foreground="{StaticResource SubMenuTextForeground}"
                            FontFamily="Verdana"
                            Text="{TemplateBinding Description}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        TargetType="local:ProgressBarControl">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="local:ProgressBarControl">
                    <Border
                        x:Name="rootLayout"
                        Background="Black"
                        BorderBrush="Silver"
                        BorderThickness="1">
                        <Rectangle
                            Margin="1"
                            Fill="Silver"
                            VerticalAlignment="Stretch"
                            HorizontalAlignment="Left"
                            Width="{Binding ProgressBarWidth}">
                        </Rectangle>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
